﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BattleSceneState : ISceneState {
    public BattleSceneState(SceneController sceneController) : base(sceneController, "03BattleScene")
    {
    }
    //private GameFacade gameFacade;// new gameFacade or using Singleton
    public override void StateEnd()
    {
        GameFacade.Instance.Release();
    }
    public override void StateStart()
    {
        GameFacade.Instance.Init();
    }
    public override void StateUpdate()
    {
        if (GameFacade.Instance.isGameOver)
        {
            m_sceneController.SetState(new MainMenuSceneState(m_sceneController));
        }
        GameFacade.Instance.Update();
    }
}
